<template>
  <el-row class="tac" style="width: 450px">
    <el-col :span="12">
      <el-button style="border: 1px solid black; border-radius: 30px; height: 50px; width:130px; font-size: 20px;
                        margin-top: 25px; margin-bottom: 20px; background-color: #fc5531; color: #ffffff"
                  onclick="window.location.href='/publish'">
        发布
      </el-button>
      <el-menu
          default-active="2"
          class="el-menu-vertical-demo"
          @open="handleOpen"
          @close="handleClose"
          style="min-height: 100vh; overflow-x: hidden;"
          router
      >
        <el-menu-item index="/home">
          <template slot="title">
            <i class="el-icon-s-home"></i>
            <span style="font-size: 18px">首页</span>
          </template>
        </el-menu-item>
        <el-submenu index="2"  style="">
          <template slot="title">
            <i class="el-icon-s-marketing"></i>
            <span  style="font-size: 18px">管理</span>
          </template>
          <el-menu-item-group>
            <el-menu-item index="/center/person">内容管理</el-menu-item>
            <el-menu-item index="/center/home">评论管理</el-menu-item>
            <el-menu-item index="/center/article">专栏管理</el-menu-item>
          </el-menu-item-group>
        </el-submenu>
        <el-submenu index="3">
          <template slot="title">
            <i class="el-icon-s-order"></i>
            <span  style="font-size: 18px">数据</span>
          </template>
          <el-menu-item-group>
            <el-menu-item index="1-1">作品数据</el-menu-item>
          </el-menu-item-group>
        </el-submenu>
      </el-menu>
    </el-col>
  </el-row>
</template>

<script>
export default {
  name: "CenterSide"
}
</script>

<style scoped>
.el-menu-item{
  margin-left: -40px
}
.el-submenu{
  margin-left: -40px
}
.el-submenu .el-menu-item {
  margin-left: 50px;
  font-size: 16px;
}

</style>